﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    public class CaramelSweet : AbstractSweet
    {
        private string _taste;

        public string GetTaste()
        {
            return _taste;
        }
        public void SetTaste(string t)
        {
            _taste = t;
        }

        public CaramelSweet() : this(null)  { }
        public CaramelSweet(string name) : this(name, 0) { }
        public CaramelSweet(string name, double weight)
        {
            this.Name = name;
            this.Weight = weight;    
        }
    }

    public class CaramelInChololate : CaramelSweet
    {
        private int _depthlayer;

        public int GetDepthlayer()
        {
            return _depthlayer;
        }
        public void SetDepthlayer(int d)
        {
            _depthlayer = d;
        }

        public CaramelInChololate() : this(null)  { }
        public CaramelInChololate(string name) : this(name, 0) { }
        public CaramelInChololate(string name, double weight)
        {
            this.Name = name;
            this.Weight = weight;  
        }
    }
}
